<?php
namespace Dashboard\Model;
use Think\Model;
class HomesModel extends Model{
    protected $_validate = array(
        array('name','require','姓名不能为空'),
        array('phone','/^1[3|4|5|8][0-9]\d{4,8}$/','手机号码错误！','0','regex',1),
        array('intro','require','简介不能为空'),
    );
}